package com.ujson.uaa.types;

import com.alibaba.fastjson.annotation.JSONField;
import com.ujson.base.domain.entity.Aggregate;
import lombok.Data;

/**
 * <h3>ujson-parent</h3>
 * <p></p>
 *
 * @author JerryLiu  a1031757312@gmail.com
 * @version 1.0
 * @date 2021-11-20 15:05
 */
@Data
public class User implements Aggregate<UserId> {

    private UserId userId;
    private String username;
    private String password;
    private String phone;
    private String email;

    @JSONField(serialize = false)
    public UserId getId() {
        return this.userId;
    }
}
